import request from "@/utils/request.js";

// 查询出租车价格
export function getInquiryprice(params) {
  return request.get("app-api/driver/taxifarerecords/taxi-fare-records/inquiry-price", params,{
    noAuth: true // TODO 芋艿：后续要做调整
  });
}

// 创建顺风车订单
export function createOnlineCarOrder(data) {
  return request.post("app-api/driver/taxi-order/createOnlineCarOrder", data);
}

// 创建网约车订单
export function createDDCarOrder(data) {
  return request.post("app-api/driver/taxi-order/createOrder", data);
}

// 查询订单信息
export function getTaxiOrder(params) {
  return request.get("app-api/driver/taxi-order/get", params);
}
// 获取司机信息
export function getDriverInfo(params) {
  return request.get("app-api/driver/info/get", params)

}
// 获取司机位置
export function getDriverLocation(params) {
  return request.get("app-api/driver/taxi-order/get-driver-location", params)
}
// 模拟支付
export function payment(params) {
  return request.get("app-api/driver/taxi-order/simulated-payment", params)
}
// 乘客上车
export function getOn(params) {
  return request.get("app-api/driver/taxi-order/updateIsGetOn", params)
}

// 司机接单&用户更改目的地&用户取消订单&司机结束订单
export function cancelOrder(params) {
  return request.put("app-api/driver/taxi-order/update", params);
}

// 查询当前用户是否存在进行中的订单
export function getUserTaxiOrder(params) {
  return request.get("app-api/driver/taxi-order/getUserTaxiOrder", params)
}

// 获取轮播图
export function getBannerList(params) {
  return request.get("app-api/system/banner/manage/list", params)
}